﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ManhattanProcedure.Model
{
    public class IceCreamIOModel
    {
        private static IceCreamIOModel instance;
        private IceCreamIOModel() { }
        public static IceCreamIOModel Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new IceCreamIOModel();
                }
                return instance;
            }
        }
        #region IO控制指令
        /// <summary>
        /// 冰淇淋杯落杯1 开
        /// </summary>
        public string Drop_Cup_Start { get; set; } = "01 05 00 00 FF 00 8C 3A";
        /// <summary>
        /// 冰淇淋杯落杯1 关
        /// </summary>
        public string Drop_Cup_End { get; set; } = "01 05 00 00 00 00 CD CA";
        /// <summary>
        /// 固体物料1 开
        /// </summary>
        public string Solid_Materials1_Start { get; set; } = "01 05 00 02 FF 00 2D FA";
        /// <summary>
        /// 固体物料1 关
        /// </summary>
        public string Solid_Materials1_End { get; set; } = "01 05 00 02 00 00 6C 0A";
        /// <summary>
        /// 固体物料2 开
        /// </summary>
        public string Solid_Materials2_Start { get; set; } = "01 05 00 03 FF 00 7C 3A";
        /// <summary>
        /// 固体物料2 关
        /// </summary>
        public string Solid_Materials2_End { get; set; } = "01 05 00 03 00 00 3D CA";
        /// <summary>
        /// 果酱泵1 开
        /// </summary>
        public string Jam_Pump1_Start { get; set; } = "01 05 00 04 FF 00 CD FB";
        /// <summary>
        /// 果酱泵1 关
        /// </summary>
        public string Jam_Pump1_End { get; set; } = "01 05 00 04 00 00 8C 0B";
        /// <summary>
        /// 果酱泵2 开
        /// </summary>
        public string Jam_Pump2_Start { get; set; } = "01 05 00 05 FF 00 9C 3B";
        /// <summary>
        /// 果酱泵2 关
        /// </summary>
        public string Jam_Pump2_End { get; set; } = "01 05 00 05 00 00 DD CB";
        /// <summary>
        /// 果酱泵3 开
        /// </summary>
        public string Jam_Pump3_Start { get; set; } = "01 05 00 06 FF 00 6C 3B";
        /// <summary>
        /// 果酱泵3 关
        /// </summary>
        public string Jam_Pump3_End { get; set; } = "01 05 00 06 00 00 2D CB";
        /// <summary>
        /// 机器人远程开机 开
        /// </summary>
        public string RobotPowerOn_Start { get; set; } = "01 05 00 07 FF 00 3D FB";
        /// <summary>
        /// 机器人远程开机 关
        /// </summary>
        public string RobotPowerOn_End { get; set; } = "01 05 00 07 00 00 7C 0B";
      
        /// <summary>
        /// 推杆上升开
        /// </summary>
        public string PushRod_UP_start { get; set; } = "01 05 00 08 FF 00 0D F8";
        /// <summary>
        /// 推杆上升关
        /// </summary>
        public string PushRod_UP_end { get; set; } = "01 05 00 08 00 00 4C 08";
        /// <summary>
        /// 推杆下降开
        /// </summary>
        public string PushRod_Down_start { get; set; } = "01 05 00 09 FF 00 5C 38";
        /// <summary>
        /// 推杆下降关
        /// </summary>
        public string PushRod_Down_end { get; set; } = "01 05 00 09 00 00 1D C8";
        /// <summary>
        /// 口味1推杆上升开
        /// </summary>
        public string IcePushRod_UP1_start { get; set; } = "01 05 00 0A FF 00 AC 38";
        /// <summary>
        /// 口味1推杆上升关
        /// </summary>
        public string   IcePushRod_UP1_end { get; set; } = "01 05 00 0A 00 00 ED C8";
        /// <summary>
        /// 口味1推杆下降开
        /// </summary>
        public string IcePushRod_Down1_start { get; set; } = "01 05 00 0B FF 00 FD F8";
        /// <summary>
        /// 口味1推杆下降关
        /// </summary>
        public string IcePushRod_Down1_end { get; set; } = "01 05 00 0B 00 00 BC 08";
        /// <summary>
        /// 口味2推杆上升开
        /// </summary>
        public string IcePushRod_UP2_start { get; set; } = "01 05 00 0C FF 00 4C 39";
        /// <summary>
        /// 口味2推杆上升关
        /// </summary>
        public string IcePushRod_UP2_end { get; set; } = "01 05 00 0C 00 00 0D C9";
        /// <summary>
        /// 口味2推杆下降开
        /// </summary>
        public string IcePushRod_Down2_start { get; set; } = "01 05 00 0D FF 00 1D F9";
        /// <summary>
        /// 口味2推杆下降关
        /// </summary>
        public string IcePushRod_Down2_end { get; set; } = "01 05 00 0D 00 00 5C 09";
        /// <summary>
        /// 口味3推杆上升开
        /// </summary>
        public string IcePushRod_UP3_start { get; set; } = "01 05 00 0E FF 00 ED F9";
        /// <summary>
        /// 口味3推杆上升关
        /// </summary>
        public string IcePushRod_UP3_end { get; set; } = "01 05 00 0E 00 00 AC 09";
        /// <summary>
        /// 口味3推杆下降开
        /// </summary>
        public string IcePushRod_Down3_start { get; set; } = "01 05 00 0F FF 00 BC 39";
        /// <summary>
        /// 口味3推杆下降关
        /// </summary>
        public string IcePushRod_Down3_end { get; set; } = "01 05 00 0F 00 00 FD C9";
        #endregion
        #region 查询数据
        public string AllMessage { get; set; } = "02 04 00 00 00 32 71 EC";
        #endregion
        #region 冰淇淋指令
        /// <summary>
        /// 开始制作 开
        /// </summary>
        public string KSZZ_Robot_Start { get; set; } = "03 05 00 28 FF 00 0D D0";
        /// <summary>
        /// 开始制作 关
        /// </summary>
        public string KSZZ_Robot_End { get; set; } = "03 05 00 28 00 00 4C 20";
        /// <summary>
        /// 去接杯 开
        /// </summary>
        public string QJB_Robot_Start { get; set; } = "03 05 00 29 FF 00 5C 10";
        /// <summary>
        /// 去接杯 关
        /// </summary>
        public string QJB_Robot_End { get; set; } = "03 05 00 29 00 00 1D E0";
        /// <summary>
        /// 去检测 开
        /// </summary>
        public string QJC_Robot_Start { get; set; } = "03 05 00 2A FF 00 AC 10";
        /// <summary>
        /// 去检测 关
        /// </summary>
        public string QJC_Robot_End { get; set; } = "03 05 00 2A 00 00 ED E0";
        /// <summary>
        /// 接杯失败 开
        /// </summary>
        public string JBSB_Robot_Start { get; set; } = "03 05 00 2B FF 00 FD D0";
        /// <summary>
        /// 接杯失败 关
        /// </summary>
        public string JBSB_Robot_End { get; set; } = "03 05 00 2B 00 00 BC 20";
        /// <summary>
        /// 接杯成功 开
        /// </summary>
        public string JBCG_Robot_Start { get; set; } = "03 05 00 2C FF 00 4C 11";
        /// <summary>
        /// 接杯成功 关
        /// </summary>
        public string JBCG_Robot_End { get; set; } = "03 05 00 2C 00 00 0D E1";
        /// <summary>
        /// 接冰淇淋1 开
        /// </summary>
        public string JBQL1_Robot_Start { get; set; } = "03 05 00 2D FF 00 1D D1";
        /// <summary>
        /// 接冰淇淋1 关
        /// </summary>
        public string JBQL1_Robot_End { get; set; } = "03 05 00 2D 00 00 5C 21";
        /// <summary>
        /// 接冰淇淋2 开
        /// </summary>
        public string JBQL2_Robot_Start { get; set; } = "03 05 00 2E FF 00 ED D1";
        /// <summary>
        /// 接冰淇淋2 关
        /// </summary>
        public string JBQL2_Robot_End { get; set; } = "03 05 00 2E 00 00 AC 21";
        /// <summary>
        /// 接冰淇淋3 开
        /// </summary>
        public string JBQL3_Robot_Start { get; set; } = "03 05 00 2F FF 00 BC 11";
        /// <summary>
        /// 接冰淇淋3 关
        /// </summary>
        public string JBQL3_Robot_End { get; set; } = "03 05 00 2F 00 00 FD E1";
        /// <summary>
        /// 果酱1 开
        /// </summary>
        public string GJ1_Robot_Start { get; set; } = "03 05 00 30 FF 00 8D D7";
        /// <summary>
        /// 果酱1 关
        /// </summary>
        public string GJ1_Robot_End { get; set; } = "03 05 00 30 00 00 CC 27";
        /// <summary>
        /// 果酱2 开
        /// </summary>
        public string GJ2_Robot_Start { get; set; } = "03 05 00 31 FF 00 DC 17";
        /// <summary>
        /// 果酱2 关
        /// </summary>
        public string GJ2_Robot_End { get; set; } = "03 05 00 31 00 00 9D E7";
        /// <summary>
        /// 果酱3 开
        /// </summary>
        public string GJ3_Robot_Start { get; set; } = "03 05 00 32 FF 00 2C 17";
        /// <summary>
        /// 果酱3 关
        /// </summary>
        public string GJ3_Robot_End { get; set; } = "03 05 00 32 00 00 6D E7";
        /// <summary>
        /// 果碎1 开
        /// </summary>
        public string GS1_Robot_Start { get; set; } = "03 05 00 33 FF 00 7D D7";
        /// <summary>
        /// 果碎1 关
        /// </summary>
        public string GS1_Robot_End { get; set; } = "03 05 00 33 00 00 3C 27";
        /// <summary>
        /// 果碎2 开
        /// </summary>
        public string GS2_Robot_Start { get; set; } = "03 05 00 34 FF 00 CC 16";
        /// <summary>
        /// 果碎2 关
        /// </summary>
        public string GS2_Robot_End { get; set; } = "03 05 00 34 00 00 8D E6";
        /// <summary>
        /// 接冰淇淋完成 开
        /// </summary>
        public string JBQLWC_Robot_Start { get; set; } = "03 05 00 35 FF 00 9D D6";
        /// <summary>
        /// 接冰淇淋完成 关
        /// </summary>
        public string JBQLWC_Robot_End { get; set; } = "03 05 00 35 00 00 DC 26";
        /// <summary>
        /// 接果酱完成 开
        /// </summary>
        public string JGJWC_Robot_Start { get; set; } = "03 05 00 36 FF 00 6D D6";
        /// <summary>
        /// 接果酱完成 关
        /// </summary>
        public string JGJWC_Robot_End { get; set; } = "03 05 00 36 00 00 2C 26";
        /// <summary>
        /// 接果碎完成 开
        /// </summary>
        public string JGSWC_Robot_Start { get; set; } = "03 05 00 37 FF 00 3C 16";
        /// <summary>
        /// 接果碎完成 关
        /// </summary>
        public string JGSWC_Robot_End { get; set; } = "03 05 00 37 00 00 7D E6";
        #endregion
        #region 冰淇淋机器人查询
        /// <summary>
        /// 原点
        /// </summary>
        public string YD_Robot_Sel { get; set; } = "03 02 00 08 00 01 39 EA";
        /// <summary>
        /// 到达接杯点
        /// </summary>
        public string DDJBD_Robot_Sel { get; set; } = "03 02 00 09 00 01 68 2A";
        /// <summary>
        /// 到达检测点
        /// </summary>
        public string DDJCD_Robot_Sel { get; set; } = "03 02 00 0A 00 01 98 2A";
        /// <summary>
        /// 到达冰淇淋点
        /// </summary>
        public string DDBQLD_Robot_Sel { get; set; } = "03 02 00 0B 00 01 C9 EA";
        /// <summary>
        /// 到达果酱点
        /// </summary>
        public string DDGJD_Robot_Sel { get; set; } = "03 02 00 0C 00 01 78 2B";
        /// <summary>
        /// 到达果碎点
        /// </summary>
        public string DDGSD_Robot_Sel { get; set; } = "03 02 00 0D 00 01 29 EB";
        /// <summary>
        /// 冰淇淋交付完成
        /// </summary>
        public string BQLJFWC_Robot_Sel { get; set; } = "03 02 00 0E 00 01 D9 EB";
        #endregion
    }
}
